package com.baizhi.test;

import com.baizhi.Application;
import com.baizhi.dao.AdminDao;
import com.baizhi.dao.UserDao;
import com.baizhi.entity.Admin;
import com.baizhi.entity.User;
import com.baizhi.util.GenerateUserUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class test3 {
    @Autowired
    private UserDao userDao;
    @Test
    public void test1() {
        for (int i = 0; i <100000 ; i++) {
            User user = GenerateUserUtil.getUser();
            userDao.insert(user);
        }


    }
}
